package com.df.ez_game.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.timeout.IdleStateEvent;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DefaultHeartBeatCallBack implements HeartBeatCallBack{
    @Override
    public void onReadIdle(ChannelHandlerContext ctx, IdleStateEvent event) {
      log.info("read idle,channel id:"+ctx.channel().id());
    }

    @Override
    public void onWriterIdle(ChannelHandlerContext ctx, IdleStateEvent event) {
        log.info("write idle,channel id:"+ctx.channel().id());
    }

    @Override
    public void onAllIdle(ChannelHandlerContext ctx, IdleStateEvent event) {
        log.info("all idle,channel id:"+ctx.channel().id());
    }
}
